package com.gitee.ywj1352.bussiness.controller;

import com.gitee.ywj1352.bussiness.biz.BusinessBiz;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class BizController {

    @Autowired
    BusinessBiz businessBiz;


    @GetMapping("/biz")
    public String add(@RequestParam("error")String error){
        businessBiz.createUserAndOrder(error);
        return "ok";
    }
}
